body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #ecf0f1;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
}

.login-container h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-button {
    width: 100%;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #34495e;
}

/* 后台页面样式 */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar a:hover {
    background-color: #34495e;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
}

/* 后台内容样式 */
.content h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.content p {
    color: #7f8c8d;
}

/* 博客管理页面样式 */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.create-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.create-btn:hover {
    background-color: #2980b9;
}

.blog-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-btn:hover {
    color: #2980b9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.article-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 20px 0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.article-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin: 5px 0;
}

.article-excerpt {
    color: #34495e;
    margin: 10px 0;
    line-height: 1.5;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.article-actions button {
    padding: 5px 15px;
    border: 1px solid #bdc3c7;
    background: white;
    color: #7f8c8d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.article-actions button:hover {
    background-color: #ecf0f1;
}

.article-item.deleted {
    opacity: 0.6;
}

.blog-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.blog-form h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.blog-form label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: bold;
}

.blog-form input,
.blog-form select,
.blog-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.blog-form textarea {
    resize: vertical;
    min-height: 150px;
}

.language-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.language-options input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.language-options label {
    display: inline;
    font-weight: normal;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.form-actions button[onclick="saveDraft()"] {
    background-color: #95a5a6;
    color: white;
}

.form-actions button[onclick="submitBlog()"] {
    background-color: #27ae60;
    color: white;
}

.form-actions button[onclick="cancelCreate()"] {
    background-color: #e74c3c;
    color: white;
}

.form-actions button:hover {
    opacity: 0.9;
}